<template>
  <div class="app-container">
    <div class="company-about">
      <div class="banner">
        <h1>百善家政服务有限公司</h1>
        <p>专业、贴心的家政服务，让您的生活更美好</p>
      </div>

      <el-card class="section">
        <div slot="header">
          <span>公司简介</span>
        </div>
        <div class="content">
          <p>百善家政服务有限公司成立于2025年，是一家专注于提供高品质家政服务的企业。公司秉承"百善孝为先，服务暖人心"的理念，致力于为客户提供专业、贴心、高效的家政服务解决方案。</p>
          <p>多年来，我们不断完善服务体系，提升服务质量，现已发展成为本地区知名的家政服务品牌，赢得了广大客户的信赖与好评。</p>
        </div>
      </el-card>

      <el-card class="section">
        <div slot="header">
          <span>我们的服务</span>
        </div>
        <div class="content">
          <el-row :gutter="20">
            <el-col :span="8" v-for="(service, index) in services" :key="index">
              <div class="service-item">
                <div class="icon">
                  <i :class="service.icon"></i>
                </div>
                <h3>{{ service.title }}</h3>
                <p>{{ service.description }}</p>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-card>

      <el-card class="section">
        <div slot="header">
          <span>我们的优势</span>
        </div>
        <div class="content">
          <el-row :gutter="20">
            <el-col :span="6" v-for="(advantage, index) in advantages" :key="index">
              <div class="advantage-item">
                <div class="icon">
                  <i :class="advantage.icon"></i>
                </div>
                <h3>{{ advantage.title }}</h3>
                <p>{{ advantage.description }}</p>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-card>

      <el-card class="section">
        <div slot="header">
          <span>联系我们</span>
        </div>
        <div class="content">
          <el-row :gutter="20">
            <el-col :span="12">
              <div class="contact-info">
                <p><i class="el-icon-location"></i> 地址：贵州省贵阳市贵阳人文科技学院</p>
                <p><i class="el-icon-phone"></i> 电话：400-123-4567</p>
                <p><i class="el-icon-message"></i> 邮箱：contact@baishan-housekeeping.com</p>
                <p><i class="el-icon-time"></i> 工作时间：周一至周日 8:00-20:00</p>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="map-container">
                <!-- 这里可以放置地图组件 -->
                <div class="map-placeholder">
                  <i class="el-icon-map-location"></i>
                  <p>公司位置地图</p>
                </div>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  name: "CompanyAbout",
  data() {
    return {
      services: [
        {
          title: "日常保洁",
          icon: "el-icon-brush",
          description: "提供专业的日常家居清洁服务，包括卫生间、厨房、客厅等区域的全面清洁。"
        },
        {
          title: "专业月嫂",
          icon: "el-icon-female",
          description: "经过专业培训的月嫂，为产妇和新生儿提供全方位的照料和护理服务。"
        },
        {
          title: "老人陪护",
          icon: "el-icon-user",
          description: "为老年人提供生活照料、情感陪伴、康复训练等专业陪护服务。"
        },
        {
          title: "深度保洁",
          icon: "el-icon-magic-stick",
          description: "针对久未清洁或特殊场合的深度清洁服务，恢复家居环境的整洁与舒适。"
        },
        {
          title: "育儿嫂",
          icon: "el-icon-coordinate",
          description: "专业的育儿嫂服务，为0-3岁婴幼儿提供科学的照料和早教指导。"
        },
        {
          title: "居家维修",
          icon: "el-icon-scissors",
          description: "提供水电维修、家具安装、小型家电维修等家居维修服务。"
        }
      ],
      advantages: [
        {
          title: "专业团队",
          icon: "el-icon-user-solid",
          description: "所有员工均经过严格筛选和专业培训，持证上岗。"
        },
        {
          title: "品质保障",
          icon: "el-icon-medal",
          description: "服务质量有保障，不满意可重新服务。"
        },
        {
          title: "安全可靠",
          icon: "el-icon-lock",
          description: "员工背景调查，购买保险，保障您的家居安全。"
        },
        {
          title: "贴心服务",
          icon: "el-icon-service",
          description: "根据客户需求定制服务方案，提供个性化服务。"
        }
      ]
    };
  }
};
</script>

<style scoped>
.company-about {
  padding: 20px 0;
}

.banner {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(to right, #1890ff, #36cfc9);
  color: white;
  padding: 50px 20px;
  border-radius: 4px;
}

.banner h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.banner p {
  font-size: 18px;
}

.section {
  margin-bottom: 30px;
}

.content {
  line-height: 1.8;
}

.service-item,
.advantage-item {
  text-align: center;
  padding: 20px;
  height: 100%;
  transition: all 0.3s;
  background-color: #f8f8f8;
  border-radius: 4px;
  margin-bottom: 20px;
}

.service-item:hover,
.advantage-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.icon {
  font-size: 48px;
  color: #1890ff;
  margin-bottom: 15px;
}

.contact-info {
  line-height: 2;
}

.map-container {
  height: 250px;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.map-placeholder i {
  font-size: 48px;
  color: #1890ff;
  margin-bottom: 10px;
}
</style>
